define(function(require){
	var $ = require("jquery");
	var justep = require("$UI/system/lib/justep");
	
	//---- css
	require("css!./css/gradient").load();
	
	var Model = function(){
		this.callParent();
		this.winHeight = 0;
	};

	Model.prototype.btnAboutClick = function(event){
		//this.comp('popMenu1').show();
	};

	Model.prototype.modelLoad = function(event){
    	var wh = window.innerHeight;
    	var ch1 = wh * 0.28;
    	var ch2 = wh * 0.22;
    	var ch3 = wh * 0.22;
		this.comp('winAccelX').load(null, {chartHeight: ch1.toFixed()+'px'});
		this.comp('winGrating').load(null, {chartHeight: ch2.toFixed()+'px'});
		this.comp('winAccelSTX').load(null, {chartHeight: ch3.toFixed()+'px'});

		//this.comp('winAccelX').getInnerModel().chartInit('100px');
	};


	return Model;
});